﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.Model.CSP;
using CSP.Model.CSPEnum;

namespace CSP.Dao.IObjectDaos.CSP
{
    public interface ICollectBusinessInfoDao : ICSPDao<CollectBusinessInfo>
    {
        /// <summary>
        /// 根据名称和用户名查找信息
        /// </summary>
        /// <param name="name"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        List<int> FindIdsByNameAndUserName(string name, string userName);

        /// <summary>
        /// 根据名称查找信息
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        List<int> FindIdsByName(string name);

        /// <summary>
        /// 根据状态和用户名超找信息
        /// </summary>
        /// <param name="status"></param>
        /// <param name="userName"></param>
        /// <returns></returns>
        List<int> FindIdsByStatusAndUserName(CollectBusinessInfoStatus status, string userName);

        /// <summary>
        /// 根据用户名查找信息
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        List<int> FindIdsByUserName(string userName);
    }
}
